package com.mrd.modules.system.service;

import java.util.List;
import java.util.Map;

import com.mrd.modules.system.entity.SysUserEntity;

/**
 * 用户表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-07-12 11:01:14
 */
public interface SysUserService {

  SysUserEntity queryObject(Integer id);

  List<SysUserEntity> queryList(Map<String, Object> map);

  int queryTotal(Map<String, Object> map);

  void save(SysUserEntity sysUser);

  void update(SysUserEntity sysUser);

  void delete(Integer id);

  void deleteBatch(Integer[] ids);

  /**
   * 根据用户名和密码登陆
   * 
   * @author han
   * @param sysUer
   * @return SysUserEntity
   */
  SysUserEntity queryByUserNamePwd(SysUserEntity sysUer);

  /**
   * 查询单个对象
   * 
   * @author han
   * @param sysUer
   * @return
   */
  SysUserEntity queryOneObject(SysUserEntity sysUer);
}
